import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Tabbar',
    redirect: '/index',
    component: () => import('../views/Tabbar.vue'),
    children: [
      {
        path: '/index',
        name: 'Index',
        component: () => import('../views/index.vue'),
      },
      {
        path: '/market',
        name: 'Market',
        component: () => import('../views/market.vue'),
      },
      {
        path: '/aliContract',
        name: 'Contract',
        component: () => import('../views/aliContract/index.vue'),
      },
      {
        path: '/capital',
        name: 'Capital',
        component: () => import('../views/capital.vue'),
      },
    ]
  },
  {
    path: '/notice',
    name: 'Notice',
    component: () => import('../views/home/notice'),
  },
  {
    path: '/options',
    name: 'Options',
    component: () => import('../views/home/options'),
  },
  {
    path: '/connent',
    name: 'Connent',
    component: () => import('../views/home/connent.vue'),
  },
  {
    path: '/problem',
    name: 'Problem',
    component: () => import('../views/home/problem.vue'),
  },
  {
    path: '/problemone',
    name: 'problemOne',
    component: () => import('../views/home/problemOne.vue'),
  },
  {
    path: '/problemtwo',
    name: 'problemTwo',
    component: () => import('../views/home/problemTwo.vue'),
  },
  {
    path: '/problemthree',
    name: 'problemThree',
    component: () => import('../views/home/problemThree.vue'),
  },
  {
    path: '/problemfour',
    name: 'problemFour',
    component: () => import('../views/home/problemFour.vue'),
  },
  {
    path: '/language',
    name: 'language',
    component: () => import('../views/home/language.vue'),
  },
  {
    path: '/rules',
    name: 'rules',
    component: () => import('../views/home/rules.vue'),
  },
  {
    path: '/recharge',
    name: 'Recharge',
    component: () => import('../views/Capital/Recharge.vue'),
  },
  {
    path: '/withdrawal',
    name: 'Withdrawal',
    component: () => import('../views/Capital/Withdrawal.vue'),
  },
  {
    path: '/withdraw',
    name: 'withdraw',
    component: () => import('../views/Capital/withdraw.vue'),
  },
  {
    path: '/transfer',
    name: 'Transfer',
    component: () => import('../views/Capital/Transfer.vue'),
  },
  {
    path:'/history',
    name:'History',
    component:() => import('../views/Capital/History.vue'),
  }, 
  {
    path:'/security',
    name:'Security',
    component:() => import('../views/Capital/Security.vue'),
  }, 
  {
    path:'/details_cz',
    name:'Details_cz',
    component:() => import('../views/Capital/Details_cz.vue'),
  }, 
  {
    path:'/details_tx',
    name:'Details_tx',
    component:() => import('../views/Capital/Details_tx.vue'),
  },
  {
    path: '/zjhistory',
    name: 'ZjHistory',
    component: () => import('../views/Contract/zjhistory.vue'),
  },
  {
    path: '/kline',
    name: 'Kline',
    component: () => import('../views/k_line/k_line.vue'),
  },
  {
    path: '/wtdetails',
    name: 'Details',
    component: () => import('../views/details/details.vue'),
  },
  {
    path: '/manager',
    name: 'manager',
    component: () => import('../views/manager.vue'),
  },
  {
    path: '/inform',
    name: 'inform',
    component: () => import('../views/home/inform.vue'),
  },
  {
    path: '/informbanner',
    name: 'informbanner',
    component: () => import('../views/home/informbanner.vue'),
  },
  {
    path: '/bug',
    name: 'bug',
    component: () => import('../views/home/bug.vue'),
  },
  {
    path: '/infor',
    name: 'infor',
    component: () => import('../views/home/infor.vue'),
  },
  {
    path: '/aliHistory',
    name: 'aliHistory',
    component: () => import('../views/aliHistory/index.vue'),
  },
  {
    path: '/zapi',
    name: 'api',
    component: () => import('../views/home/api.vue'),
  },
]
const router = new VueRouter({
  mode:'history',
  routes
})

export default router
